package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.billpool.Detail.RetAtsB312Detail;
import com.fingard.xml.XmlTextWriter;

/*保证金归集明细查看
* */
public class RetAtsB312AssuranceDetail extends RetAtsBase{
    public String RespCode;
    public String RespInfo;

    public RetAtsB312AssuranceDetail(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }

    public void writeBefore(){
        writeStart();
        retXmlWriter.writeElementString("RespCode", RespCode);
        retXmlWriter.writeElementString("RespInfo", RespInfo);
    }

    public void WriteAfter() {
        writeEnd();
    }

    public void writeDetail(RetAtsB312Detail B312Detail) {
        retXmlWriter.writeStartElement("DetailRecord");

        retXmlWriter.writeElementString("QueryType","");
        retXmlWriter.writeElementString("TranBank","");
        retXmlWriter.writeElementString("AccountName",B312Detail.InName);
        retXmlWriter.writeElementString("AccountNum",B312Detail.InAccountNum);
        retXmlWriter.writeElementString("OppBankCode","");
        retXmlWriter.writeElementString("OppBankName","");
        retXmlWriter.writeElementString("OppAccountName",B312Detail.OutName);
        retXmlWriter.writeElementString("OppAccountNum",B312Detail.OutAccountNum);
        retXmlWriter.writeElementString("AccountType",B312Detail.AccountType);
        retXmlWriter.writeElementString("TranAmount",B312Detail.CollectAmount);
        retXmlWriter.writeElementString("TranDate",B312Detail.CollectDate);
        retXmlWriter.writeElementString("TranTime",B312Detail.TranTime);
        retXmlWriter.writeElementString("HostSerialno",B312Detail.HostSerialno);
        retXmlWriter.writeElementString("MoneyWay",B312Detail.MoneyWay);
        retXmlWriter.writeElementString("ReceiptNo",B312Detail.ReceiptNo);
        retXmlWriter.writeEndElement();
    }
}
